using MaterialUI;
using System;
using UnityEngine;

public class Example15 : MonoBehaviour
{
	public void OnTimePickerButtonClicked()
	{
		DialogManager.ShowTimePicker(DateTime.MinValue.AddHours(UnityEngine.Random.Range(0, 24)).AddMinutes(UnityEngine.Random.Range(0, 60)), delegate(DateTime time)
		{
			ToastManager.Show(time.ToShortTimeString());
		}, MaterialColor.Random500());
	}

	public void OnDatePickerButtonClicked()
	{
		DialogManager.ShowDatePicker(UnityEngine.Random.Range(1980, 2050), UnityEngine.Random.Range(1, 12), UnityEngine.Random.Range(1, 30), delegate(DateTime date)
		{
			ToastManager.Show(date.ToString("dd MMM, yyyy"));
		}, MaterialColor.Random500());
	}
}
